package com.lkd.http.controller;

import com.lkd.feign.OrderServiceFeignClient;
import com.lkd.vo.PayVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
public class OrderController {

    @Autowired
    private OrderServiceFeignClient orderServiceFeignClient;

    @PostMapping("/order/requestPay")
    public Map<String, String> requestPay(@RequestBody PayVO vo){
        return  orderServiceFeignClient.requestPay(vo);
    }
}
